Skip to main content

All Questions

0votes
1answer
36views

how put an id unique in a button in a rails loop?

I have a grid where the receipts are listed with their information and the display button. The idea is that pressing the button that appears in the actions column (button_tag) sends the information of ...
Lucho's user avatar
1vote
1answer
179views

how can put ruby tag with javascript (coffescript)?

I am working with ruby on rails (rails 4.2). Given a validation done in javascript I need to run a ruby tag or not. I found something similar here but it didn't work for me. html: <div id="...
Lucho's user avatar
0votes
1answer
94views

Dropzone Rails Gem How to Send with 0 Files

I want to know the right way on how I handle still sending even when I have 0 files uploaded. I have a form that has a lot of data to input and the images are optional. I could probably send this with ...
TheMangaStand's user avatar
4votes
3answers
873views

how add coffeescript in svelte on Rails 7?

I have a Rails 7 app with esbuild : esbuild.config.js : #!/usr/bin/env node const watch = process.argv.includes("--watch"); const esbuild = require('esbuild') const ...
Matrix's user avatar
  • 3,377
0votes
1answer
194views

Add parameters while submitting a form in rails6

Can I add additional parameters to the below submit function without adding hidden_fields in the form and ajax in rails6 $("#product_form").submit() Please help. Thanks
jissy's user avatar
0votes
1answer
282views

How to check syntax error in coffeescript

I am not familiar with coffee script, I try to move jquery from view to put in asset but not able to make it work. Here the working from view: - jquery_ready do $('label[for=voucher_name], input#...
PKul's user avatar
  • 1,721
1vote
1answer
123views

errors creating a custom web component with coffeescript

I am trying to create a custom HTML5 web component in a Rails application, but I am getting errors instantiating the Javascript object. Version info: Rails 4.2.11.3 ruby 2.5.8 coffee-rails 4.1.1 I've ...
Fred Willmore's user avatar
2votes
3answers
4kviews

How do you get JQuery to work with Rails 6 and Webpacker 6

I really cant believe that getting JQuery to work with Rails 6 and Webpacker 6 can be so hard. Suggestions in Rails 6: How to add jquery-ui through webpacker? don't appear to have worked but hard to ...
Craig Miles's user avatar
1vote
1answer
3kviews

Manually force trigger a change event on select in nested form using stimulusjs

Using Haml, ruby 2.7.2, rails 6.1.2.1, stimulus ^2.0.0 So, I am using a nested form that shows a select type. Based on the value of the select type, I will either show or hide a div. I'm converting my ...
Eric Wanchic's user avatar
0votes
1answer
123views

Automatically update value with coffeescript

i'm new using JS so i'm having problems here rsrs i need to automatically update the result field, as soon as the user starts to insert the value on amount's field $(document).ready -> $('form')....
Matheus Souza's user avatar
0votes
0answers
155views

Add date and time in coffee script

I have date and time like this for start date start_year = "2021" start_month = "01" start_day = "15" start_hour = "20" start_minute = "55" ...
Kumar Nikhil's user avatar
0votes
1answer
37views

How can you get a js/coffee variable inside a rails expression within a coffee file?

Given the line 'car': '<%= I18n.t('url.car', locale: :sv) %>' is in a mysite.coffee.erb file in a rails app. I would like to dynamically set that locale from a js variable, but cant figure out ...
IT_puppet_master's user avatar
0votes
0answers
34views

CoffeeScript Strange Behavior?

I came across this strange CoffeeScript behavior today. arr = [1,2,3] console.log 10 -8 console.log arr.length -1 The second line is giving the correct output. But the the third line is resulting in ...
MD Tawab Alam Khan's user avatar
2votes
1answer
104views

Coffee script code for file size validation in rails?

I had tried to validate the file size for attachments in nested attributes. But it is not working properly. Anyone faced the similar problem?
ror-dev's user avatar
0votes
1answer
2kviews

AG-GRID Excel Export: Is there any way in AG-Grid to configure Records Export Limit per user?

Is there any way to to restrict Excel Export limit from AG-Grid, so that only allowed number of rows can be exported by a User. For an Example, if Grid is showing 75,000 Records, can we limit Excel ...
kashif's user avatar
  • 1,157

153050per page
close